PROP_LOOP,
PROP_DIRECTION,
PROP_FRAME_CLOCK,
+ PROP_PROGRESS_TYPE,
PROP_SCREEN,
PROP_WIDGET
};
"clock used for timing the animation (not needed if :widget is set)",
GDK_TYPE_FRAME_CLOCK,
G_PARAM_READWRITE));
+ g_object_class_install_property (object_class,
+ PROP_PROGRESS_TYPE,
+ g_param_spec_enum ("progress-type",
+ "Progress Type",
+ "Easing function for animation progress",
+ GTK_TYPE_TIMELINE_PROGRESS_TYPE,
+ GTK_TIMELINE_PROGRESS_EASE_OUT,
+ G_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_SCREEN,
g_param_spec_object ("screen",
gtk_timeline_set_frame_clock (timeline,
GDK_FRAME_CLOCK (g_value_get_object (value)));
break;
+ case PROP_PROGRESS_TYPE:
+ gtk_timeline_set_progress_type (timeline,
+ g_value_get_enum (value));
+ break;
case PROP_SCREEN:
gtk_timeline_set_screen (timeline,
GDK_SCREEN (g_value_get_object (value)));
case PROP_FRAME_CLOCK:
g_value_set_object (value, priv->frame_clock);
break;
+ case PROP_PROGRESS_TYPE:
+ g_value_set_enum (value, priv->progress_type);
+ break;
case PROP_SCREEN:
g_value_set_object (value, priv->screen);
break;
gtk_timeline_stop_updating (timeline);
}
-/*
+/**
* gtk_timeline_new:
* @widget: a widget the timeline will be used with
* @duration: duration in milliseconds for the timeline
NULL);
}
-/*
+/**
* gtk_timeline_start:
* @timeline: A #GtkTimeline
*
}
}
-/*
+/**
* gtk_timeline_pause:
* @timeline: A #GtkTimeline
*
}
}
-/*
+/**
* gtk_timeline_rewind:
* @timeline: A #GtkTimeline
*
priv->last_time = gdk_frame_clock_get_frame_time (priv->frame_clock);
}
-/*
+/**
* gtk_timeline_is_running:
* @timeline: A #GtkTimeline
*
return priv->running;
}
-/*
+/**
* gtk_timeline_get_elapsed_time:
* @timeline: A #GtkTimeline
*
return priv->loop;
}
-/*
+/**
* gtk_timeline_set_loop:
* @timeline: A #GtkTimeline
* @loop: %TRUE to make the timeline loop
return priv->duration;
}
-/*
+/**
* gtk_timeline_set_direction:
* @timeline: A #GtkTimeline
* @direction: direction
g_object_notify (G_OBJECT (timeline), "paint-clock");
}
+/**
+ * gtk_timeline_get_frame_clock:
+ *
+ * Returns: (transfer none):
+ */
GdkFrameClock *
gtk_timeline_get_frame_clock (GtkTimeline *timeline)
{
g_object_notify (G_OBJECT (timeline), "screen");
}
+/**
+ * gtk_timeline_get_screen:
+ *
+ * Returns: (transfer none):
+ */
GdkScreen *
gtk_timeline_get_screen (GtkTimeline *timeline)
{
g_object_notify (G_OBJECT (timeline), "widget");
}
+/**
+ * gtk_timeline_get_widget:
+ *
+ * Returns: (transfer none):
+ */
GtkWidget *
gtk_timeline_get_widget (GtkTimeline *timeline)
{